package com.ruoyi.project.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.base.Field;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("入库表")
@TableName("project_store")
public class ProjectStore extends Field {
    /** 表id */
    @TableField(fill = FieldFill.INSERT)
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;


    /** 货物id */
    @Excel(name = "货物id")
    //货物id
    private String goodsId;


    /** 成本单价 */
    @Excel(name = "成本单价")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#0.00")
    //成本单价
    private BigDecimal price;

    //数量
    private Integer amount;


    /** 入库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd")
    //入库日期
    private Date storageDate;

    private String datas;



    public ProjectStore(Long id, String goodsId, BigDecimal price, Integer amount, Date storageDate) {
    }

    public ProjectStore() {

    }
}
